//
//  MyTableViewCell.swift
//  RXSwiftTest
//
//  Created by ZhangBo on 2019/6/18.
//  Copyright © 2019 ZhangBo. All rights reserved.
//

import UIKit

class MyTableViewCell: UITableViewCell {

    var titlteLabel: UILabel?
    var nameLabel: UILabel?
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        self.titlteLabel = UILabel(frame: CGRect(x: 10, y: 0, width: 100, height: self.contentView.bounds.height))
        self.contentView.addSubview(self.titlteLabel!)
        
        self.nameLabel = UILabel(frame: CGRect(x: self.titlteLabel!.bounds.maxX, y: 0, width: 100, height: self.contentView.bounds.height))
        self.contentView.addSubview(self.nameLabel!)
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    public func getvalue(titleStr: String, nameStr: String) {
        self.titlteLabel?.text = titleStr
        self.nameLabel?.text = nameStr
    }

}
